/**
 * This file is part of 1genia trampoline
 * Copyright (C) 2007 - 2008 1genia (contact@1genia.com)
 *
 * This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; version 3 of the License. 
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details. 
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; see the file COPYING.TXT.  If not,
 * write to the Free Software Foundation, Inc., 51 Franklin Street,
 * Fifth Floor, Boston, MA 02110-1301, USA. 
 **/

package com.genia.toolbox.basics.bean.image.impl;

import com.genia.toolbox.basics.bean.image.MutablePoint;

/**
 * implementation of {@link MutablePoint}.
 *
 */
public class PointImpl implements MutablePoint
{

  /**
   * The x coordinate.
   * If no x coordinate is set it will default to 0.
   */
  private int x = 0;

  /**
   * The y coordinate.
   * If no y coordinate is set it will default to 0.
   */
  private int y = 0;
  
  /**
   * Construct a point with given coordinates.
   * @param x
   *    x coordinate to set
   * @param y
   *    y coordinate to set
   */
  public PointImpl(int x, int y)
  {
    super();
    this.x = x;
    this.y = y;
  }
  
  /**
   * Empty constructor with 0 as default coordinates.
   *
   */
  public PointImpl()
  {
  }

  /**
   * getter for the x property.
   * @return the x
   */
  public int getX()
  {
    return x;
  }

  /**
   * setter for the x property.
   * @param x the x to set
   */
  public void setX(int x)
  {
    this.x = x;
  }

  /**
   * getter for the y property.
   * @return the y
   */
  public int getY()
  {
    return y;
  }

  /**
   * setter for the y property.
   * @param y the y to set
   */
  public void setY(int y)
  {
    this.y = y;
  }
  
}